using System.Data.Entity;
using MySql.Data.Entity;
using NUnit.Framework;

namespace IntergrationTest.PaiShi.fahuoduan
{
    public class ITt1
    {


        [Test]
        public void METHOD()
        {

            var db = new YourDbContext();

            db.YourEntities.Add(new AccYourEntity() { Id = 1, Name = "n1" });
            db.SaveChanges();

        }


    }



    [DbConfigurationType(typeof(MySqlEFConfiguration))]
    public class YourDbContext : DbContext
    {
        public YourDbContext() : base("name=CnnStrAccDb")
        {
        }

        // DbSets for your entities go here...
        public DbSet<AccYourEntity> YourEntities { get; set; }
    }
    
    
    public class AccYourEntity
    {
        public int Id { get; set; }

        public string Name { get; set; }
        // ... other properties
    }



}

